package com.dyna.service;

import org.springframework.stereotype.Component;

//当发生宕机时，进行统一处理
@Component
public class PaymentFallbackService implements HystrixOrderService {
    @Override
    public String hystrix(Integer id) {
        return "服务调用失败，提示来自：cloud-consumer-feign-order80-hystrix";
    }

    @Override
    public String hystrix_Out(Integer id) {
        return "服务调用失败，提示来自：cloud-consumer-feign-order80-hystrix_Out";
    }
}
